<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="Hexo Theme Keep">
    <meta name="description" content="Hexo Theme Keep">
    <meta name="author" content="jianyu">
    
    <title>
        
            Fota相关知识梳理 |
        
        gyu&#39;s 时光
    </title>
    
<link rel="stylesheet" href="/css/style.css">

    <link rel="shortcut icon" href="/images/logo.svg">
    
<link rel="stylesheet" href="/css/font-awesome.min.css">

    <script id="hexo-configurations">
    let KEEP = window.KEEP || {};
    KEEP.hexo_config = {"hostname":"gyu.gitee.io","root":"/","language":"zh-CN","path":"search.xml"};
    KEEP.theme_config = {"toc":{"enable":true,"number":true,"expand_all":true,"init_open":true},"style":{"primary_color":"#0066CC","avatar":"https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/common-use/avatar.jpg","favicon":"/images/logo.svg","article_img_align":"left","left_side_width":"260px","content_max_width":"920px","hover":{"shadow":true,"scale":false},"first_screen":{"enable":true,"background_img":"/images/bg.svg","description":"只要开始，一切都来得及."},"scroll":{"progress_bar":{"enable":true},"percent":{"enable":true}}},"local_search":{"enable":true,"preload":true},"code_copy":{"enable":true,"style":"default"},"pjax":{"enable":false},"lazyload":{"enable":false},"version":"3.4.2"};
    KEEP.language_ago = {"second":"%s 秒前","minute":"%s 分钟前","hour":"%s 小时前","day":"%s 天前","week":"%s 周前","month":"%s 月前","year":"%s 年前"};
  </script>
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
<div class="progress-bar-container">
    
        <span class="scroll-progress-bar"></span>
    

    
</div>


<main class="page-container">

    

    <div class="page-main-content">

        <div class="page-main-content-top">
            <header class="header-wrapper">

    <div class="header-content">
        <div class="left">
            <a class="logo-title" href="/">
                gyu&#39;s 时光
            </a>
        </div>

        <div class="right">
            <div class="pc">
                <ul class="menu-list">
                    
                        <li class="menu-item">
                            <a class=""
                               href="/"
                            >
                                首页
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/archives"
                            >
                                归档
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/categories"
                            >
                                分类
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/tags"
                            >
                                标签
                            </a>
                        </li>
                    
                    
                        <li class="menu-item search search-popup-trigger">
                            <i class="fas fa-search"></i>
                        </li>
                    
                </ul>
            </div>
            <div class="mobile">
                
                    <div class="icon-item search search-popup-trigger"><i class="fas fa-search"></i></div>
                
                <div class="icon-item menu-bar">
                    <div class="menu-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="header-drawer">
        <ul class="drawer-menu-list">
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/">首页</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/archives">归档</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/categories">分类</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/tags">标签</a>
                </li>
            
        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="page-main-content-middle">

            <div class="main-content">

                
                    <div class="fade-in-down-animation">
    <div class="article-content-container">

        <div class="article-title">
            <span class="title-hover-animation">Fota相关知识梳理</span>
        </div>

        
            <div class="article-header">
                <div class="avatar">
                    <img src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/common-use/avatar.jpg">
                </div>
                <div class="info">
                    <div class="author">
                        <span class="name">jianyu</span>
                        
                            <span class="author-label">Engineer</span>
                        
                    </div>
                    <div class="meta-info">
                        <div class="article-meta-info">
    <span class="article-date article-meta-item">
        <i class="fas fa-edit"></i>&nbsp;2021-07-09 20:20:33
    </span>
    
        <span class="article-categories article-meta-item">
            <i class="fas fa-folder"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/categories/Android/">Android</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    
    

    
    
    
    
</div>

                    </div>
                </div>
            </div>
        

        <div class="article-content markdown-body">
            <p>此文档是基于fota的源码，学习分析的总结．以下是关于FOTA check、download、install三个流程的具体细节分析．</p>
<h2 id="1-FOTA-check"><a href="#1-FOTA-check" class="headerlink" title="1.FOTA check"></a><strong>1.FOTA check</strong></h2><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">code eg:</span><br><span class="line">-FotaEngine::Check()</span><br><span class="line"> 　m_pEngineAdapter→Check()</span><br><span class="line">--FotaEngineAdapter::Check() </span><br><span class="line">   m_pEngineCore→Check()</span><br><span class="line">--EngineCore::Check(const bool isUserTriggered)</span><br><span class="line">   m_pBizLogic-&gt;VerifyCheckPrecondition(isUserTriggered, blError)</span><br><span class="line">   ContinueCheck(blResult, blError)</span><br><span class="line">--FotaBizLogic::VerifyCheckPrecondition()   </span><br><span class="line">--FotaWorker::Check(const bool isUserTriggered)</span><br><span class="line"> 　pKUSUtils-&gt;Check(result, detail)</span><br><span class="line"> 　m_pEngineCore-&gt;NotifyCheckResult(true, detail);</span><br></pre></td></tr></table></figure>
<p>刷机初次连接网络check/设置自动更新间隔定时器触发check/进入Store会check/点击softwareudpate check菜单.以上4种场景都会触发check.<br>VerifyCheckPrecondition(验证check前提条件)：此操作会检查网络状态，设置KUS check parameters.<br>KUSUtils::Check才是进行正式的check server操作，然后返回responseCode,result.<br>NotifyCheckResult发出EVENT_TYPE_CHECK_COMPLETE的事件，gaia层system可对其进行监听。这样一次完成check操作完成。</p>
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">fota_stub.js</span><br><span class="line">EVENT_TYPE_CHECK_COMPLETE: &#39;check_complete&#39;,</span><br><span class="line"></span><br><span class="line">case this.EVENT_TYPE_CHECK_COMPLETE:</span><br><span class="line">  this.onCheckComplete(event.result, event.detail);</span><br><span class="line">  break;</span><br></pre></td></tr></table></figure>
<p>在onCheckComplete中，会更新updateAutoUpdateAlarm 也会判断gecko传回的result，当ENGINE_ERROR_OK时候触发onUpdateFound.此操作会判断当前手机中的包和check的包对比是否已过时。如果过时scheduleDownload，不过时return，也不会触发auto install<br>注：触发auto install的操作，是在system 中触发的（tryScheduleInstall）</p>
<p>情景一：<br>本地存有未完成的更新包，前提auto download 模式，手机被重启。用户进入software update 菜单不会自动下载，需要手动下载，进入store或system定时器触发FotaEngine:check(),这两个情景会自动下载。</p>
<p>情景二：<br>本地存已完成的更新包，之前未满足auto install,手机被重启。</p>
<p>1.若用户进入store,store触发FotaEngine:check()操作，gecko将check结果反馈给system，在onCheckComplete中，会更新updateAutoUpdateAlarm 也会判断gecko传回的result，当ENGINE_ERROR_OK时候触发onUpdateFound.此操作会判断当前手机中的包和check的包对比是否已过时。如果过时scheduleDownload，执行Download操作，不过时则return，也不会触发auto install.</p>
<p>2.若用户进入software update 菜单，触发FotaEngine: Start()操作然后EngineCore: EndUpdateState，发出START_COMPLETE事件，FotaBizLogic:NotifyEngineEvent,E_EVT_START_COMPLETE,software update的UI上显示intall button,不会触发auto install</p>
<p>关于获取automatic updates的数据：<br>为了获取用户设置的自动更新间隔。当前server获取的用户数据不包含自动更新间隔，在不影响server的情况下，将获取的数据，追加到现有的字段KUS_PARAM_NAME_CHECK_TYPE “cktp”上。</p>
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">Log eg:</span><br><span class="line">07-02 08:43:43.968  3668  4915 D fota: KUSUtils: GetParam,name&#x3D; curef,value&#x3D; 8624130XXXXXX</span><br><span class="line">07-02 08:43:43.978  3668  4915 D fota: KUSUtils: fullUrl&#x3D;https:&#x2F;&#x2F;XXXX.fota.XXXXX.com&#x2F;check.php?id&#x3D;8624130XXXXXX&amp;curef&#x3D;somedeice&amp;fv&#x3D;20190910R2V25&amp;type&#x3D;FIRMWARE&amp;mode&#x3D;2&amp;cltp&#x3D;10&amp;sdtd&#x3D;N&amp;cktp&#x3D;21&amp;chnl&#x3D;2&amp;osvs&#x3D;XXXX%202.5.2.1&amp;dvid&#x3D;a78bea07-394b-4be0-a25c-dbd94f684d30&amp;mdna&#x3D;qcom&amp;mdnu&#x3D;msm8909_512&amp;id2&#x3D;86241302XXXXXX&amp;pcard&#x3D;0&amp;vend&#x3D;QUALCOMM</span><br><span class="line"></span><br><span class="line">Code eg:</span><br><span class="line">KUSUtils* pKUSUtils &#x3D; KUSUtils::GetInstance();</span><br><span class="line">int theConfigValue &#x3D; Preferences::GetInt(CONFIG_KEY_AUTO_UPDATE_INTERVAL, CONFIG_VALUE_AUI_DAILY);</span><br></pre></td></tr></table></figure>

<h2 id="2-FOTA-download"><a href="#2-FOTA-download" class="headerlink" title="2.FOTA download"></a><strong>2.FOTA download</strong></h2><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">app　code :</span><br><span class="line">this._fota.scheduleDownload();</span><br><span class="line">gecko 代码逻辑 :</span><br><span class="line">--FotaEngine::ScheduleDownload() </span><br><span class="line">    m_pEngineAdapter-&gt;ScheduleDownload();</span><br><span class="line">--FotaEngineAdapter::ScheduleDownload()</span><br><span class="line">    m_pEngineCore-&gt;Schedule(E_ST_DOWNLOADING, FOTA_SCHEDULED_CHECK_FROM_SYSTEM);</span><br><span class="line">--EngineCore::Schedule(EngineState nextState, int source)</span><br><span class="line">    ScheduleInternal(nextState);</span><br><span class="line">    m_pBizLogic-&gt;VerifyDownloadPrecondition</span><br><span class="line">    ScheduleInternal(nextState);</span><br><span class="line">    ThreadWrapper::RunThread(&amp;EngineCore::Download, this, false);</span><br><span class="line">--EngineCore::Download(const bool isUserTriggered) </span><br><span class="line">    m_pBizLogic-&gt;VerifyDownloadPrecondition(isUserTriggered, mEngineContext.checkResult, blError);</span><br><span class="line">    ContinueDownload(blResult, blError)</span><br><span class="line">    NotifyAll(E_EVT_DOWNLOAD_START, ENGINE_ERROR_OK, 0);</span><br><span class="line">    std::thread workThread(&amp;WorkerInterface::Download, m_pWorker, mEngineContext.isUserTriggered, mEngineContext.checkResult);</span><br><span class="line">--FotaWorker::Download(const bool isUserTriggered, CheckResult checkResult)</span><br><span class="line">    NewDownloadSession(isUserTriggered, checkResult);</span><br><span class="line">      m_pDownloadSession-&gt;RequestResume();</span><br><span class="line">    pKUSUtils-&gt;SetParam()</span><br><span class="line">    pKUSUtils-&gt;DownloadRequest(mKUSCheckResult.firmwareId, mKUSCheckResult.versionTv, result, detail);</span><br><span class="line">--DownloadSession::RequestResume() </span><br><span class="line">    std::thread workThread(&amp;DownloadSession::ResumeInternal, this);</span><br><span class="line">    DownloadSession::ResumeInternal()</span><br><span class="line">    DownloadSession::ThreadFunction()</span><br><span class="line">    mCallbackObjectPointer-&gt;OnSessionStateChanged(this, S_ST_RUNNING, mDownloadedSize, true, 0);</span><br><span class="line">--FotaWorker::OnSessionStateChanged</span><br><span class="line">    m_pEngineCore-&gt;NotifyProgress(progress)</span><br><span class="line">--EngineCore::NotifyProgress(int progress)</span><br><span class="line">    NotifyAll(E_EVT_DOWNLOAD_PROGRESS, ENGINE_ERROR_OK, progress);</span><br><span class="line">VerifyDownloadPrecondition此操作会判断updatePackageSize，dataFreeSpace，existedPackageOnDataSize．判断SD是否存在，如果SD存在，获取sdcardFreeSpace．</span><br><span class="line">检查本地更新包（package info）是否，存在则ValidatePackageInfo＆＆ValidatePackageInfoWithCheckResult．如果存在的是最新包，则下载结束．否则移除本地的package info．VerifyResumePrecondition中会判断下载的网络通道类型（wifi or data）.</span><br><span class="line">真正执行下载操作是在FotaWorker::Download中NewDownloadSession．通过DownloadSession::ResumeInternal进行下载操作的．</span><br><span class="line">当前下载失败会报 operation&#x3D;1000, status&#x3D;1000的错误</span><br><span class="line">download complete failed: unknow reason</span><br><span class="line">log:</span><br><span class="line">06-04 16:54:38.297   452 10114 D fota: FotaBizLogic: NotifyEngineEvent, event&#x3D;6, result&#x3D;-10, detail&#x3D;-2005 06-04 16:54:39.587   452 10111 D fota: FotaWorker: NotifyKUSServer, operation&#x3D;1000, status&#x3D;1000, result&#x3D;0, detail&#x3D;0</span><br><span class="line">1000-1000的失败里失败原因比较多，其中detail值不同,可代表具体失败状态．</span><br><span class="line">gecko&#x2F;koost&#x2F;fota&#x2F;support&#x2F;DownloadSessionDefs.h</span><br><span class="line">&#x2F;&#x2F; details list</span><br><span class="line">#define SESSION_DETAIL_INVALID_PARAMS        -2001   &#x2F;&#x2F;无效的参数</span><br><span class="line">#define SESSION_DETAIL_CURL_INIT_ERROR       -2002   &#x2F;&#x2F;仅定义未使用,此错误类型不会出现（CURL 初始化错误）</span><br><span class="line">#define SESSION_DETAIL_DIFFERENT_CONTENT     -2003   &#x2F;&#x2F;package content length is changed</span><br><span class="line">#define SESSION_DETAIL_SERVER_UNUSEABLE      -2004   &#x2F;&#x2F;网络问题 服务器不可用</span><br><span class="line">#define SESSION_DETAIL_ALLOCATE_FAILED       -2005   &#x2F;&#x2F;分配空间失败</span><br><span class="line">#define SESSION_DETAIL_SPLIT_FILE_RANGE      -2006   &#x2F;&#x2F;拆分download pckage 失敗</span><br><span class="line">#define SESSION_DETAIL_USER_OPERATION        -2007   &#x2F;&#x2F;下载被用户或系统取消</span><br><span class="line">#define SESSION_DETAIL_FINISHED_ALREADY      -2008   &#x2F;&#x2F;download package already finished， avoiding to downlaod again</span><br><span class="line">#define SESSION_DETAIL_TERMINATED_ALREADY    -2009   &#x2F;&#x2F;session will be terminate due to server unused, we need to notify pause failed</span><br><span class="line">DownloadSession是一个独立的下载库，跟FotaWorker无关．这些错误详情仅为DownloadSession内部的状态．不过还是可以通过 details信息详细定位下载失败的原因．</span><br></pre></td></tr></table></figure>

<h2 id="3-FOTA-install"><a href="#3-FOTA-install" class="headerlink" title="3.FOTA  install"></a><strong>3.FOTA  install</strong></h2><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">gecko eg:</span><br><span class="line"></span><br><span class="line">--EngineCore::Install</span><br><span class="line">    m_pBizLogic→VerifyInstallPrecondition</span><br><span class="line">   ContinueInstall(blResult, blError)</span><br><span class="line">--FotaWorker::Install</span><br><span class="line">   pUtils→InstallViaRecovery(downloadFileName)</span><br><span class="line"></span><br><span class="line">VerifyInstallPrecondition(验证安装前提条件):此操作会检查电池电量，并且当auto install模式下，会检查音频活跃状态，判断升级包是否存在，判断安装空间。</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">install成功或者失败的结果会被写入如下文件中</span><br><span class="line"></span><br><span class="line">#define LOCAL_UPDATE_RESULT_FILE1 &quot;&#x2F;data&#x2F;fota&#x2F;result.txt&quot;</span><br><span class="line">#define LOCAL_UPDATE_RESULT_FILE2 &quot;&#x2F;cache&#x2F;recovery&#x2F;result.txt&quot;</span><br><span class="line">手机重启之后会执行FotaBizLogic::Init()操作。这个过程中会读取install成功失败的结果值 result。从此文件读取之后此文件会被清除，然后SetPreference将此值赋值给mInstallResult。如果mInstallResult不为0 ，会执行上报动作。</span><br><span class="line">Install Result 上报完成后</span><br><span class="line"></span><br><span class="line">--FotaBizLogic::NotifyEngineEvent</span><br><span class="line">  switch (event) &#123;</span><br><span class="line">   case E_EVT_REPORT_COMPLETE:</span><br><span class="line">     if (ENGINE_ERROR_OK &#x3D;&#x3D; result) &#123;</span><br><span class="line">      &#x2F;&#x2F;clear the pending report so that we do not need to report again</span><br><span class="line">      mInstallResult &#x3D; 0;</span><br><span class="line">      SetPendingReport(mInstallResult);</span><br><span class="line">	&#125;</span><br><span class="line">    break;</span><br><span class="line">将mInstallResult赋值为0.上报完成。</span><br></pre></td></tr></table></figure>
<p>当前存在的问题：存在9%左右的机器，在download完成之后，未进行install .此后开机再也无法进行install.<br>解决思路：<br>当手机重启之后，system判断当手机中是否存在升级包(update.zip),是否是auto install ,存在且是则addWakeLockListener状态的监听。<br>当CPU状态发生变化，回调执行install操作。</p>
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">Code eg:</span><br><span class="line"></span><br><span class="line">--- a&#x2F;js&#x2F;fota_stub.js</span><br><span class="line">+++ b&#x2F;js&#x2F;fota_stub.js</span><br><span class="line">@@ -68,6 +68,14 @@ var FotaStub &#x3D; &#123;</span><br><span class="line"> </span><br><span class="line">     window.addEventListener(&#39;moztimechange&#39;, this);</span><br><span class="line"> </span><br><span class="line">+      var packageInfoStr &#x3D; this._fota.getPackageInfo();</span><br><span class="line">+      var packageInfo &#x3D; JSON.parse(packageInfoStr);</span><br><span class="line">+</span><br><span class="line">+      if (packageInfo.updateVersion) &#123;</span><br><span class="line">+          if (packageInfo.autoInstall) &#123;</span><br><span class="line">+              navigator.mozPower.addWakeLockListener(this);</span><br><span class="line">+          &#125;</span><br><span class="line">+      &#125;</span><br></pre></td></tr></table></figure>

        </div>

        
            <div class="post-copyright-info">
                <div class="article-copyright-info-container">
    <ul>
        <li>
            版权声明：本博客所有文章除特别声明外，均采用 <a class="license" target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">BY-NC-SA</a> 许可协议。转载请注明出处！
        </li>
    </ul>
</div>

            </div>
        

        
            <div class="article-nav">
                
                
                    <div class="article-next">
                        <a class="next"
                           rel="next"
                           href="/2021/06/08/Kaios%20PowerManager%20API%E8%AF%A6%E8%A7%A3/"
                        >
                            <span class="title flex-center">
                                <span class="post-nav-title-item">Kaios PowerManager API详解</span>
                                <span class="post-nav-item">下一篇</span>
                            </span>
                            <span class="right arrow-icon flex-center">
                              <i class="fas fa-chevron-right"></i>
                            </span>
                        </a>
                    </div>
                
            </div>
        

        
    </div>
</div>


                
            </div>

        </div>

        <div class="page-main-content-bottom">
            <footer class="footer">
    <div class="info-container">
        <div class="copyright-info info-item">
            &copy;
            
              <span>2018</span>&nbsp;-&nbsp;
            
            2021&nbsp;<i class="fas fa-heart icon-animate"></i>&nbsp;<a href="/">jianyu</a>
        </div>
        
        
    </div>
</footer>

        </div>
    </div>

    
        <div class="post-tools">
            <div class="post-tools-container">
    <ul class="tools-list">
        <!-- TOC aside toggle -->
        
            <li class="tools-item page-aside-toggle">
                <i class="fas fa-outdent"></i>
            </li>
        

        <!-- go comment -->
        
    </ul>
</div>

        </div>
    

    <div class="right-bottom-side-tools">
        <div class="side-tools-container">
    <ul class="side-tools-list">
        <li class="tools-item tool-font-adjust-plus flex-center">
            <i class="fas fa-search-plus"></i>
        </li>

        <li class="tools-item tool-font-adjust-minus flex-center">
            <i class="fas fa-search-minus"></i>
        </li>

        <li class="tools-item tool-expand-width flex-center">
            <i class="fas fa-arrows-alt-h"></i>
        </li>

        <li class="tools-item tool-dark-light-toggle flex-center">
            <i class="fas fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="tools-item tool-scroll-to-bottom flex-center">
            <i class="fas fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="exposed-tools-list">
        <li class="tools-item tool-toggle-show flex-center">
            <i class="fas fa-cog fa-spin"></i>
        </li>
        
            <li class="tools-item tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
    </ul>
</div>

    </div>

    
        <aside class="page-aside">
            <div class="post-toc-wrap">
    <div class="post-toc">
        <ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-FOTA-check"><span class="nav-number">1.</span> <span class="nav-text">1.FOTA check</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-FOTA-download"><span class="nav-number">2.</span> <span class="nav-text">2.FOTA download</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-FOTA-install"><span class="nav-number">3.</span> <span class="nav-text">3.FOTA  install</span></a></li></ol>
    </div>
</div>
        </aside>
    

    <div class="image-viewer-container">
    <img src="">
</div>


    
        <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
          <span class="search-input-field-pre">
            <i class="fas fa-keyboard"></i>
          </span>
            <div class="search-input-container">
                <input autocomplete="off"
                       autocorrect="off"
                       autocapitalize="off"
                       placeholder="搜索..."
                       spellcheck="false"
                       type="search"
                       class="search-input"
                >
            </div>
            <span class="popup-btn-close">
                <i class="fas fa-times"></i>
            </span>
        </div>
        <div id="search-result">
            <div id="no-result">
                <i class="fas fa-spinner fa-pulse fa-5x fa-fw"></i>
            </div>
        </div>
    </div>
</div>

    

</main>




<script src="/js/utils.js"></script>

<script src="/js/main.js"></script>

<script src="/js/header-shrink.js"></script>

<script src="/js/back2top.js"></script>

<script src="/js/dark-light-toggle.js"></script>



    
<script src="/js/local-search.js"></script>




    
<script src="/js/code-copy.js"></script>





<div class="post-scripts">
    
        
<script src="/js/left-side-toggle.js"></script>

<script src="/js/libs/anime.min.js"></script>

<script src="/js/toc.js"></script>

    
</div>



</body>
</html>
